﻿<Window x:Class="frmNetworkProductDetail"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:ax="clr-namespace:axVisDrawCtrl;assembly=axVisDrawCtrl"
    x:Name="frmNetworkProductDetail"
	mc:Ignorable="d"
	Width="415" Height="316"
    Title="Product Detail" WindowStartupLocation="CenterScreen">


    <!--  add a context menu for the objects -->
    <Window.Resources >
        <!-- non shared creates a new instance everytime -->
        <ContextMenu x:Key="NonsharedInstanceContextMenu" x:Shared="False">
            <MenuItem Header="This MenuItem is checkable" IsCheckable="true" />
            <Separator/>
            <MenuItem Header="This is a regular MenuItem" />
        </ContextMenu>
        <!-- shared is a single instance for everyone -->
        <ContextMenu x:Key="SharedInstanceContextMenu" x:Shared="True">
            <MenuItem Header="This MenuItem is checkable" IsCheckable="True" />
            <Separator/>
            <MenuItem Header="This is a regular MenuItem" />
        </ContextMenu>
    </Window.Resources>



    <Grid x:Name="LayoutRoot" Background="White" Height="277">


        <StackPanel x:Name="spDetail" Orientation="Horizontal" 
			Margin="24,26,161,82" d:LayoutOverrides="Height">
            
            <StackPanel x:Name="spLabels" Orientation="Vertical" 
				Margin="0,0,0,0" Width="100" Height="170">

                <TextBlock x:Name="ProductIdLabel" Margin="0,5,0,0" Width="88" Height="20" 
						Text="ProductId:" HorizontalAlignment="Right"/>
                <TextBlock x:Name="rangeNameLabel" Margin="0,0,0,0" Width="88" Height="20" 
						Text="Range Name:" HorizontalAlignment="Right"/>
                <TextBlock x:Name="descriptionLabel" Margin="0,0,0,0" Width="88" Height="20" 
						Text="Description:" HorizontalAlignment="Right"/>
                <TextBlock x:Name="typeLabel" Margin="0,0,0,0" Width="88" Height="20" 
						Text="Type:" HorizontalAlignment="Right"/>

                <TextBlock x:Name="costLabel" Margin="0" Width="88" Height="20" 
						Text="Cost:" HorizontalAlignment="Right"/>
                <TextBlock x:Name="wholesaleLabel" Margin="0,0,0,0" Width="88" Height="20" 
						Text="Range Name:" HorizontalAlignment="Right"/>
                <TextBlock x:Name="retailLabel" Margin="0,0,0,0" Width="88" Height="20" 
						Text="Retail:" HorizontalAlignment="Right"/>
                <TextBlock x:Name="laborHoursLabel" Margin="0,0,0,0" Width="88" Height="20" 
						Text="Labor:" HorizontalAlignment="Right"/>

                <!-- end spLabels -->
            </StackPanel>
            <StackPanel x:Name="spValues" Orientation="Vertical" 
				Margin="10,0,0,0" Width="100" Height="170">

                <TextBox x:Name="productIDValue" Margin="0,5,0,0" Width="88" Height="20" Text="" FontSize="10" />
                <TextBox x:Name="rangeNameValue" Margin="0,0,0,0" Width="88" Height="20" Text="" FontSize="10" />
                <TextBox x:Name="descriptionValue" Margin="0,0,0,0" Width="88" Height="20" Text="" FontSize="10" />
                <TextBox x:Name="typeValue" Margin="0,0,0,0" Width="88" Height="20" Text="" FontSize="10" />

                <TextBox x:Name="costValue" Margin="0,0,0,0" Width="88" Height="20" Text="" FontSize="10" />
                <TextBox x:Name="wholesaleValue" Margin="0,0,0,0" Width="88" Height="20" Text="" FontSize="10" />
                <TextBox x:Name="retailValue" Margin="0,0,0,0" Width="88" Height="20" Text="" FontSize="10" />
                <TextBox x:Name="laborHoursValue" Margin="0,0,0,0" Width="88" Height="20" Text="" FontSize="10" />

                <!-- end spValues -->
            </StackPanel>

            <!-- end spdetails -->
        </StackPanel>

        <StackPanel Name="spImage" Orientation="Vertical" Width="131" 
                    HorizontalAlignment="Right" Margin="0,12.5,12,82">

            <TextBlock x:Name="noProductsLabel" Margin="0,0,0,0" Width="110" Height="20" 
						Text="No Products Found" HorizontalAlignment="Center"/>

            <!-- now add the visio control -->
            <WindowsFormsHost Name="wfh" Margin="0,5,0,0" Height="140">
                <ax:axVisDraw Name="axVis"/>
            </WindowsFormsHost>

            <!-- end spImage -->
        </StackPanel>
      
    
        <Button Name="okButton"
				HorizontalAlignment="Right" Margin="0,0,47,12" VerticalAlignment="Bottom" 
				Width="54" Height="27" Content="OK"
                Click="okButton_Click"/>



    </Grid>
</Window>
